#ifndef TYPEOFROOMDIALOG_H
#define TYPEOFROOMDIALOG_H

#include <QDialog>
#include <QTextCodec>
#include <QModelIndex>
#include <QKeyEvent>

#include "../../Headers/Classes/typeofroom.h"

namespace Ui {
    class TypeOfRoomDialog;
}

class TypeOfRoomDialog : public QDialog
{
    Q_OBJECT

public:
    explicit TypeOfRoomDialog(QWidget *parent = 0);
    ~TypeOfRoomDialog();

    void Update();
    bool checkSelected();

    TypeOfRoom * getCurrentTypeOfRoom();

private slots:
    void on_createButton_clicked();

    void on_editButton_clicked();

    void on_deleteButton_clicked();

    void keyPressEvent(QKeyEvent *);

    void on_closeButton_clicked();

    void on_tableView_doubleClicked(const QModelIndex &index);

    void on_action_triggered();

private:
    Ui::TypeOfRoomDialog *ui;
};

#endif // TYPEOFROOMDIALOG_H
